home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT SPECIALKEYWORDCHARACTERS.SCRIPT < prev    next >
Encoding:
Text File  |  2002-04-15  |  1008 b   |  31 lines

  1. !!Script
  2. // Copyright ⌐ 1997-1999 - Modelworks Software
  3. // @Modified build 261 cm19990130 - corrected typos
  4.  
  5. // Insert script helper for:
  6.  
  7. /**
  8. @Object: DocumentTemplate 
  9. @Property: specialKeywordCharacters - use this property to add additional 
  10. characters to keywords that are to be syntax colored. Keywords include alpha 
  11. character, numeric characters, the '_' character and any characters defined 
  12. by this property. Note that keywords are case sensitive. To support multiword 
  13. keywords (e.g. "SELECT FROM") include a space in the specialKeywordCharacters 
  14. value (e.g., " -").
  15. @Syntax: documentTemplate.specialKeywordCharacters 
  16. @Summary: specialKeywordCharacters - define additional keyword characters 
  17. */
  18.  
  19. function DoCommand()
  20. {
  21.   var editor = getActiveEditor();
  22.   if (editor)
  23.   {
  24.     var selection = editor.getSelection();
  25.     editor.replace("documentTemplate.specialKeywordCharacters", selection);
  26.     editor.setActive("Insert specialKeywordCharacters");
  27.   }
  28. }
  29.  
  30. !!/Script
  31.